<%-- 
    Document   : Sp_LeftContainer_Search
    Created on : Mar 31, 2015, 1:04:53 AM
    Author     : PHATNBSE61057
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<c:set var="user" value="${sessionScope.USER}"/>
<td class="leftContainer">
    <div class="textSection">
        <div class="block">
            <div class="corner1">
                <div class="corner2">
                    <div class="lineTop"></div>
                </div>
            </div>
            <div class="cont">
                <c:if test="${not empty user}">
                    <c:if test="${user.roleID == 1}">
                        <div class="account-menu">
                            <h3>
                                Menu</h3>
                            <ul>
                                <li><a href="S_addNewBook.jsp"><span>Add New Book</span></a></li>
                                <li>
                                    <a href="ProcessServlet?btAction=ViewAllOrder&txtUsername=${user.username}">
                                        <span>View all order</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="ProcessServlet?btAction=Download">
                                        <span>Export Books Info</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </c:if>
                    <c:if test="${user.roleID != 1}">
                        <div class="account-menu">
                            <h3>
                                Menu</h3>
                            <ul>
                                <li><a href="C_viewCartPage.jsp"><span>View Cart</span></a></li>
                                <li><a href="ProcessServlet?btAction=ViewAllOrder&txtUsername=${user.username}">
                                        <span>View all order</span>
                                    </a></li>
                            </ul>
                        </div>
                    </c:if>
                </c:if>
                <c:if test="${empty user}">
                    <div class="account-menu">
                        <h3>
                            My Account</h3>
                        <ul>
                            <li><a href="G_registerPage.jsp">Register</a></li>
                            <li><a href="G_loginPage.jsp">Login</a></li>
                        </ul>
                    </div>
                </c:if>

            </div>
            <div class="corner4">
                <div class="corner3">
                    <div class="lineBtm"></div>
                </div>
            </div>
        </div>
        <div class="nofloat"></div>
    </div>
</td>
